//
//  YSGHelpCenterCategoryItemCell.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2020/11/19.
//  Copyright © 2020 QDSG. All rights reserved.
//

import UIKit

class YSGHelpCenterCategoryItemCell: UICollectionViewCell {
    
    func configure(with vm: YSGHelpCenterCategoryItemViewModel) {
        imageView.kf.setImage(with: URL(string: vm.model.url ?? ""))
        titleLabel.text = vm.model.name ?? ""
    }

    @IBOutlet private weak var imageView: UIImageView! {
        didSet {
            imageView.contentMode = .scaleAspectFill
        }
    }
    
    @IBOutlet private weak var titleLabel: UILabel! {
        didSet {
            titleLabel.textColor = .textDark
            titleLabel.font = .medium_14
        }
    }

}
